<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);

String outPatientVisitInfoJson= (String)request.getAttribute("outPatientVisitInfoJson");
String success= (String)request.getAttribute("success");
%>
<link href="${basePath}/static/css/Pigeonhole/Pigeonhole_list.css"
	rel="stylesheet" type="text/css">
<link rel="stylesheet"
	href="${basePath}/static/css/medicalRecord_Search/medicalSearch.css" />
<script type="text/javascript"
	src="${basePath}/static/publics/assets/jqPaginator/jqPaginator.js"></script>
	<script type="text/javascript" src="${basePath}assets/js/echarts.js"></script>
<div class="list_NR">
<div class="loc">
            <h3>全院门诊量</h3>
            <ul class="loc_loc">各临床科室情况
            </ul> 
        </div>
        
        <div class="list_con_table">
	        	<div class="search_table">
                <ul class="clearfix" style="margin-bottom:0;">
                		
                    <li class="Label_5">
                        <div class="right">
                        	<input class="btn" type="button" onclick="exportWord()" value="导出">
                        	<input class="btn" type="button" onclick="saveGeneralPerformance()" value="保存">
                        </div>
                    </li>
                    <li class="Label_1" style="width:12%;height:100px;line-height:100px">说明：&nbsp;</li>
                    <li class="Label_2" style="width:17%;height:100px"><textarea style="height:100px;width:517%"/>${outpatientAgeInfo.note}</textarea></li>
                </ul>
            </div>
        </div>
       
        <table class="Search_tableList" cellpadding="0" cellspacing="0">
       		  <tr>
                <td class="tdLabel_5" colspan="10">门急诊患者年龄构成情况</td>
     		 <tr>
                <td class="tdLabel_4" rowspan="2"></td>
                <td class="tdLabel_4" colspan="2">${statisticalReportParam.statics1Name}</td>
                <td class="tdLabel_4" colspan="2">${statisticalReportParam.statics3Name}</td>
                <td class="tdLabel_4" colspan="2">${statisticalReportParam.statics2Name}</td>
                </tr>
            <tr>
                <td class="tdLabel_4">门急诊人次</td>
                <td class="tdLabel_4">构成比（%）</td>
                <td class="tdLabel_4">门急诊人次</td>
                <td class="tdLabel_4">构成比（%）</td>
                <td class="tdLabel_4">门急诊人次</td>
                <td class="tdLabel_4">构成比（%）</td>
            </tr>
            
           
            <tbody id="tbody">
            
            	<c:forEach items="${outpatientAgeInfo.recordList}" var="obj">
           			 <tr>
            			<td class='tdLabel_5'>${obj.title}</td>
            			<td class='tdLabel_5'>${obj.num}</td>
            			<td class='tdLabel_5'>${obj.rate}</td>
            			<td class='tdLabel_5'>${obj.preMonthNum}</td>
            			<td class='tdLabel_5'>${obj.preMonthRate}</td>
            			<td class='tdLabel_5'>${obj.lastYearNum}</td>
            			<td class='tdLabel_5'>${obj.lastYearRate}</td>
            			
            		</tr>
           </c:forEach>
            </tbody>
               
           
        </table>



</div>
	





<script>

function exportWord(){
  window.location.href="${basePath}/report/exportOutpatientAge";
}

//保存
function saveGeneralPerformance(){
   $.ajax({
       type:"post",
        url:"${basePath}/report/saveOutpatientAgeInfo",
        success:function(data){
        	layer.alert(data.msg,{icon:1});
        }
   });
	

}





</script>